package com.purchase.ml.bean.req.shoppingcart;

import lombok.Data;

import javax.validation.constraints.NotNull;

/**
 * Created by kyyang on 2021/2/28 13:10
 */
@Data
public class ProductCartReq {

    @NotNull(message = "Penomboran produk tidak boleh kosong")
    private Long productId;

    private int quantity;

    public  ProductCartReq(){

    }
   public  ProductCartReq(Long productId,int quantity){
        this.productId=productId;
        this.quantity=quantity;
    }

}
